package com.bw.network

import com.bw.network.interceptor.SignInterceptor
import com.bw.network.interceptor.TokenInterceptor
import retrofit2.Retrofit
import okhttp3.OkHttpClient

class TokenSignRetrofitlmapl : BaseHttpRetrofitlmpl() {
    override fun readtime(): Long {
        return 30
    }

    override fun connectime(): Long {
        return 30
    }

    override fun writetime(): Long {
        return 30
    }

    override fun createRetrofit(): Retrofit {
        val signInterceptor = SignInterceptor()
        val tokenInterceptor = TokenInterceptor()
        val builder =
            createokHttpBuilder()!!.addInterceptor(signInterceptor).addInterceptor(tokenInterceptor)
        return createRetrofit(builder.build())
    }
}